package com.studyinghome.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单
 *
 * @author Leslie
 * @create 2023-02-10 14:27
 **/
@Data
@TableName("tb_order")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String orderNo;
    private BigDecimal totalPrice;
    private Integer deleted;

    @TableField(exist = false)
    private List<OrderItem> orderItems;
}
